﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using FileManager_Server.ServiceModel.DataTransfer_Model;

namespace FileManager_Server.BusinessLogic.WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "INotifyMessage_Service" in both code and config file together.
    [ServiceContract(CallbackContract = typeof(IPublisherEvents))]
    public interface INotifyMessage_Service
    {
        [OperationContract]
        void Subscriber(UserLoginResult userLoginResult);

        [OperationContract]
        void UnSubscriber(UserLoginResult userLoginResult);
    }

        public interface IPublisherEvents
        {
            [OperationContract]
            void NotifyFileMessage(string message);

            [OperationContract]
            void NotifyFileMessageOpenFolder(NotifyMessageObject notifyMessageObject);

            [OperationContract]
            void UserLogOffMessage();

            [OperationContract]
            void UserRepeatLoginLogOff();

            [OperationContract]
            void UpdateClientService(string version);
        }
}
